import 'package:flutter/material.dart';
import 'package:flutter_member/routes/application.dart';
import 'package:flutter_member/stytle/listview_overScrollbehavior.dart';
import 'package:flutter_member/widget/custom_appbar.dart';
import 'package:flutter_screenutil/screenutil.dart';

/// 客服列表
class CustomerServiceList extends StatefulWidget {
  @override
  _CustomerServiceListState createState() => _CustomerServiceListState();
}

class _CustomerServiceListState extends State<CustomerServiceList> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('聯繫我們'),
      ),
      body: Container(
        color: Colors.white,
        padding: EdgeInsets.all(20),
        child: Container(
          child: ScrollConfiguration(
              behavior: OverScrollBehavior(),
              child: ListView(
                padding: EdgeInsets.all(20),
                children: <Widget>[
                  Card(
                    shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.all(Radius.circular(10.0)),),
                    elevation: 3,
                    child: Container(
                      child: Center(
                        child: Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          children: <Widget>[
                            Text(
                              '客服001號',
                              style: TextStyle(
                                  fontSize: 18,
                                  fontWeight: FontWeight.bold
                              ),
                            )
                          ],
                        ),
                      ),
                      height: ScreenUtil().setHeight(80),
                    ),
                  ),
                  Card(
                    shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.all(Radius.circular(10.0)),),
                    elevation: 3,
                    child: InkWell(
                      onTap:()=> Application.jump(context, '/impage'),
                      child: Container(
                        child: Center(
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: <Widget>[
                              Text(
                                '客服002號',
                                style: TextStyle(
                                    fontSize: 18,
                                    fontWeight: FontWeight.bold
                                ),
                              )
                            ],
                          ),
                        ),
                        height: ScreenUtil().setHeight(80),
                      ),
                    ),
                  ),
                ],
              )
          ),
          decoration: BoxDecoration(
            color: Colors.lightBlue,
            borderRadius:BorderRadius.circular(10.0),
          ),
        ),
      ),
    );
  }
}
